<script setup lang="ts">
const route = useRoute();
const router = useRouter();
// http://localhost/#/redirect/dashboard?q=/login
const { params, query } = route;
const { path } = params;
router.replace({ path: `/${path}`, query });

</script>

